<%--
    Document   : homeadmin
    Created on : Jul 22, 2011, 10:53:38 PM
    Author     : Hai
--%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Create Contest Page</title>
        <link rel="stylesheet" href="styleAdminManager.css" type="text/css"/>
        <link rel="stylesheet" type="text/css" media="all" href="css/jquery-ui-1.8.14.custom.css"  />
        <script type="text/javascript" src="js/jquery-1.5.1.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.14.custom.min.js"></script>
        <script type="text/javascript" src="js/jquery.ui.datepicker-en-AU.js"></script>
        <script type="text/javascript">
            $(function() {
                $( "#datepicker" ).datepicker();
                $( "#datepicker1" ).datepicker();
            });
            function validation(){
                var today = new Date();
                var strToday=today.getDate()+"/"+today.getMonth()+"/"+today.getFullYear();
                window.alert(strToday)
            }
        </script>
    </head>
    <body>
        <%
                    HttpSession sesson = request.getSession();
                    if (session.getAttribute("admin") == null) {
        %>
        <jsp:forward page="loginAdmin.jsp"></jsp:forward>
        <%                  }
                  //System.out.println(session.getAttribute("admin"));
%>
        <div id="wrapper">
            <div id="header">

                <h1>Photo Share</h1>
                <img src="header_right.gif" alt="hinh"/>
            </div>
            <div id="nav">
                <ul>
                    <li><a href="homeadmin.jsp">Home</a></li>
                    <li><a href="ManagerPhoto.jsp">Photo</a></li>
                    <li><a href="faq.jsp">FAQ</a></li>
                    <li><a href="managecomment.jsp">Comment</a></li>
                    <li><a href="ManagerUser.jsp">User</a></li>
                    <li class="end"><a href="ManagerCollection.jsp">Caterory</a></li>
                </ul>
            </div>
            <div id="contentAdmin">
                <fieldset>
                    <legend>Create Contest</legend>

                    <form id="" name="" method="post" action="TriController">
                        <table width="600">
                            <tr>
                                <td width="222">Name of Contest:</td>
                                <td width="287"><label>
                                        <input name="txtNameContest" type="text" id="txtNameContest" />
                                    </label></td>
                            </tr>
                            <tr>
                                <td>Content of Contest:</td>
                                <td><label>
                                        <textarea name="txtContent" id="txtContent" cols="45" rows="5"></textarea>
                                    </label></td>
                            </tr>
                            <tr>
                                <td>Requirement of Contest:</td>
                                <td><textarea name="txtRequirement" id="txtRequirement" cols="45" rows="5"></textarea></td>
                            </tr>
                            <div class="demo">
                                <tr>
                                    <td>From Date of Contest:</td>
                                    <td><label>
                                            <input type="text" name="txtFromDate" id="datepicker" value=""/>
                                        </label></td>
                                </tr>
                                <tr>
                                    <td>To Date of Contest:</td>
                                    <td>
                                        <input type="text" name="txtToDate" id="datepicker1" value=""/>
                                    </td>
                                </tr>
                            </div>
                            <tr>
                                <td>&nbsp;</td>
                                <td><label>
                                        <input type="submit" name="action" id="btnCreateContest" value="Create Contest" />
                                        <a href="home.jsp"> <input type="submit" name="btnHomePage" id="btnHomePage" value="Back to Home Page" /> </a>
                                    </label></td>
                            </tr>
                        </table>
                    </form>
                </fieldset>
            </div>
        </div>
        <div id="footer">

        </div>
    </div>
</body>
</html>
